/**
 * 
 */
package com.hfjyz.exam.service;

import javax.servlet.http.HttpServletRequest;

import org.springframework.validation.BindException;

import com.hfjyz.exam.command.AdminLoginCommand;
import com.hfjyz.exam.command.LoginCommand;
import com.hfjyz.exam.command.ModifyPasswordCommand;
import com.hfjyz.exam.model.UserInfo;

/**
 *
 */
public interface LoginService extends BaseService {

	public UserInfo login(HttpServletRequest request, LoginCommand command,
			BindException errors) throws Exception;

	public void modifyPassword(HttpServletRequest request,
			ModifyPasswordCommand cmd, BindException errors) throws Exception;

	public void adminLogin(HttpServletRequest request, AdminLoginCommand cmd,
			BindException errors) throws Exception;

}
